fixed warnings
add timer