fixed bug caused by left-over code