fixed bug (cannot read over 3 functions)