fixed wrong functions call