getting input
partialy work