added solution for alt lambda