added functionality to cavas input
Merged