fixed bug in yet unused function