trying to make thing work smoother