fixes timing issue