init function and draw test