long and short position locking