adding poosibility to create algorithm using only input type
adding last_changes