tab implementation fixed. Automatically added if-clause by eclipse was causing the problem.