static keyword causes error