changed function description and small bugfix