tested some code