basic function operations working