added functions for touch.. needs work