simplified lock usage.