finally figured out the problem